<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <!-- INTERFACE -->
    <cc:interface>
        <cc:attribute name="formName" required="true"/>
    </cc:interface>
    <!-- IMPLEMENTATION -->
    <cc:implementation>
        <f:view>
            <h:form id="salesInquiryForm">
                <p:panel header="#{cc.attrs.formName}" >
                    <h:panelGrid columns="2"> 
                        <h:outputText value="Sales Lead/Customer Id: " />
                        <p:inputText required="true" requiredMessage="Field is required." 
                                     id="personId" value="#{salesInquiryManagerBean.personId}">                     
                        </p:inputText>
                        <h:selectManyCheckbox id="productQuantity" 
                                              value="#{salesInquiryManagerBean.product}" border="1" disabled="false" 
                                              layout="pageDirection"> 
                            <f:selectItems value="#{productManagerBean.listProductIdName()}" />
                        </h:selectManyCheckbox>

                        <h:outputText value="Indicative Price (S$): " />
                        <p:inputText required="true" requiredMessage="Field is required." 
                                     id="indicativePrice" value="#{salesInquiryManagerBean.indicativePrice}">                     
                        </p:inputText>




                        <h:commandButton action="saveSalesInquiry.xhtml" value="Add Sales Inquiry" actionListener="#{salesInquiryManagerBean.addSalesInquiry}" />
                    </h:panelGrid> 
                </p:panel>
            </h:form>
        </f:view>
    </cc:implementation>    
</html>